<?php
$confs=[
    'dev'=>[
        'host' => 'http://61.129.71.103:7970/agent-main/openapi',
        'merId' => '17717266'
    ],
    'prod'=>[
        'host' => 'https://caspay.sandpay.com.cn/agent-main/openapi',
        'merId' => '14136735'
    ]
];
$appStatus=config('app_status');
$host=$confs[$appStatus]['host'];
$merId=$confs[$appStatus]['merId'];
$orderCode=time().rand(10000,99999);
return array(
    'AgentPay' => array(
        'transCode' => 'RTPM',
        'merId' => $merId,
        'url' => $host . '/agentpay',
        'pt' => array(
            'orderCode' => $orderCode,
            'version' => '01',
            'productId' => '00000004',
            'tranTime' => date('YmdHis', time()),
        //  'timeOut' => '20161024120000',
         //   'busiType' => '1',
            'tranAmt' => '000000000001',
            'currencyCode' => '156',
        /*  'accAttr' => '1',
            'bankName' => 'cbc',
            'bankType' => '1', */
            'accAttr' => '0',
            'accNo' => '6216261000000000018',
            'accType' => '4',
            'accName' => '全渠道',
        //  'provNo' => 'sh',
        //  'cityNo' => 'sh',
            'payMode'=>2,
            'channelType'=>'07',
            'remark' => 'pay'
        )
    ),
    'Collection' => array(
        'transCode' => 'RTCO',
        'merId' => $merId,
        'url' => $host . '/collection',
        'pt' => array(
            'orderCode' => $orderCode,
            'version' => '01',
            'productId' => '00000002',
            'tranTime' => date('YmdHis', time()),
         //   'timeOut' => '20161024120000',
            'tranAmt' => '000000000001',
            'currencyCode' => '156',
            'accAttr' => '0',
            'accType' => '4',
            'accNo' => '',
            'accName' => '',
          //  'bankName' => '',
            'provNo' => '',
            'cityNo' => '',
            'certType' => '0001',
            'certNo' => '',
            'cardId' => '',
            'phone' => '',
            'bankInsCode' => '',
            'purpose' => 'collection',
            'channelType'=>'07',
        )
    ),
    'IdCardVerify' => array(
        'transCode' => 'RNPA',
        'merId' => $merId,
        'url' => $host . '/idCardVerify',
        'pt' => array(
            'orderCode' => $orderCode,
            'version' => '01',
            'productId' => '00000003',
            'tranTime' => date('YmdHis', time()),
            'name' => '罗福',
            'certType' => '0001',
            'certNo' => '350424198806210053',
            'returnPic' => '1',
        )
    ),
    'QueryBalance' => array(
        'transCode' => 'MBQU',
        'merId' =>$merId,
        'url' => $host . '/queryBalance',
        'pt' => array(
            'orderCode' =>$orderCode,
            'version' => '01',
            'productId' => '00000003',
            'tranTime' => date('YmdHis', time())
        )
    ),
    'QueryFee' => array(
        'transCode' => 'PTFQ',
        'merId' => $merId,
        'url' => $host . '/queryAgentpayFee',
        'pt' => array(
            'orderCode' => $orderCode,
            'version' => '01',
            'productId' => '00000003',
            'tranTime' => date('YmdHis', time()),
            'tranAmt' => '000000020000',
            'currencyCode' => '156',
            'accAttr' => '0',
            'accType' => '4',
            'accNo' => '5187180008861234'
        )
    ),
    'QueryOrder' => array(
        'transCode' => 'ODQU',
        'merId' => $merId,
        'url' => $host . '/queryOrder',
        'pt' => array(
            'orderCode' => $orderCode,
            'version' => '01',
            'productId' => '00000004',
            'tranTime' => '20170630175050'
        )
    ),
    'RealNameVerify' => array(
        'transCode' => 'RNAU',
        'merId' => $merId,
        'url' => $host . '/realNameVerify',
        'pt' => array(
            'orderCode' =>$orderCode,
            'version' => '01',
            'productId' => '00000003',
            'tranTime' => date('YmdHis', time()),
            'accAttr' => '0',
            'accType' => '4',
            'accNo' => '6216261000000000018',
            'accName' => '汪中',
            'certType' => '01',
            'certNo' => '350821198706134513',
            'phone' => '15980847045',
        )
    ),
);